package com.lanxigua.entity;

import org.json.JSONException;
import org.json.JSONObject;

public class Shop extends Base<Shop> {
	@Item("id")
	public String id;
	public String industry;
	public String name;
	public String description;
	public String telephone;
	public String address;
	public String country;
	public String province;
	public String city;
	public String state;
	public String logo;
	public String latitude;
	public String longitude;
	public Category category;	
	public User owner;

	public Shop() {

	}

	public Shop(JSONObject json) {
		super(json);
		try {
			this.category = new Category(json.getJSONObject("category"));
			this.owner = new User(json.getJSONObject("owner"));
		} catch (JSONException e) {			
			e.printStackTrace();
		}
	}
}